import BaseService from './_BaseService'

class ContactService extends BaseService {
  root = window.apiPath + '/contacts'

  importContact (fileUrl, insideGroup = false) {
    let param = 'fileUrl=' + encodeURI(fileUrl) + '&insideGroup=' + insideGroup
    return super.post(this.root + '-import?' + param, {}).then(resp => resp.data)
  }
}

export default new ContactService()
